package com.woniuxy.carlife.carlifeuserweb.service;

import com.woniuxy.carlife.carlifecommonsweb.exception.CarlifeGlobalException;
import com.woniuxy.carlife.carlifeuserweb.entity.Storefavorites;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author zjq
 * @ClassName:StorefavoritesService
 * @Description:门店收藏
 * @date 2021/4/6 20:02
 **/

public interface StorefavoritesService extends IService<Storefavorites> {

    /*
     * 功能描述〈查询门店收藏，根据用户id〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/12 14:14
     * @throws
     */

    public List<Storefavorites> findStorefavorites(Integer userId);


    /*
     * 功能描述〈删除门店收藏〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/14 14:45
     * @throws
     */

    public Boolean deleteStorefavoritesByStorefavoritesId(Integer storefavoritesId);


    /*
     * 功能描述〈门店新增〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/14 19:47
     * @throws
     */
    public Boolean addStorefavoritesByUserId(Storefavorites storefavorites);

    /*
     * 功能描述〈门店总数统计〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/15 16:02
     * @throws
     */

    public Integer storefavoritesTotalByUserId(Integer userId);

}
